import{d as k,a as l,o as s,b as r,w as e,E as x,A as g,Y as u,t as c,f as o,e as t,W as v,F as V,c as m,aw as B,m as C}from"./index-c80Lh_is.js";import{S}from"./StatusBadge-UNqSn95Q.js";const D={key:2,class:"stack"},E={class:"columns"},N=k({__name:"DelegatedGatewayDetailView",setup(P){return(R,b)=>{const f=l("KCard"),y=l("DataSource"),h=l("AppView"),w=l("RouteView");return s(),r(w,{name:"delegated-gateway-detail-view",params:{mesh:"",service:"",codeSearch:"",codeFilter:!1,codeRegExp:!1,dataplane:""}},{default:e(({route:i,t:n})=>[t(h,null,{default:e(()=>[t(y,{src:`/meshes/${i.params.mesh}/service-insights/${i.params.service}`},{default:e(({data:a,error:p})=>[p?(s(),r(x,{key:0,error:p},null,8,["error"])):a===void 0?(s(),r(g,{key:1})):(s(),m("div",D,[t(f,null,{default:e(()=>{var d,_;return[C("div",E,[t(u,null,{title:e(()=>[o(c(n("http.api.property.status")),1)]),body:e(()=>[t(S,{status:a.status},null,8,["status"])]),_:2},1024),o(),t(u,null,{title:e(()=>[o(c(n("http.api.property.address")),1)]),body:e(()=>[a.addressPort?(s(),r(v,{key:0,text:a.addressPort},null,8,["text"])):(s(),m(V,{key:1},[o(c(n("common.detail.none")),1)],64))]),_:2},1024),o(),t(B,{online:((d=a.dataplanes)==null?void 0:d.online)??0,total:((_=a.dataplanes)==null?void 0:_.total)??0},{title:e(()=>[o(c(n("http.api.property.dataPlaneProxies")),1)]),_:2},1032,["online","total"])])]}),_:2},1024)]))]),_:2},1032,["src"])]),_:2},1024)]),_:1})}}});export{N as default};
